package com.example.deliveryapp;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class PaymentConfirmedActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);

        // 设置内容视图为您的布局XML
        setContentView(R.layout.payment_confirmed);
        ImageView back_payment_confirmed = findViewById(R.id.back_payment_confirmed);
        back_payment_confirmed.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(PaymentConfirmedActivity.this,CheckOutPageActivity.class);
                startActivity(intent);
            }
        });
        Button trackorder_button = findViewById(R.id.trackorder_button);
        trackorder_button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(PaymentConfirmedActivity.this,DeliveryStatusActivity.class);
                startActivity(intent);
            }
        });
    }
}
